/**
  ******************************************************************************
  * @file           : password_key_task.h
  * @brief          : Header for password_key_task.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __LL_PASSWORD_KEY_H
#define __LL_PASSWORD_KEY_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "xl32f003xx_ll_Start_Kit.h"

/* Private includes ----------------------------------------------------------*/
/* Exported types ------------------------------------------------------------*/
/* Private define ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
typedef union addr_union 
{
    char data;
    struct{
       uint8_t bit0 :1;
       uint8_t bit1 :1;
       uint8_t bit2 :1;
       uint8_t bit3 :1;
       uint8_t bit4 :1;
       uint8_t bit5 :1;
       uint8_t bit6 :1;
       uint8_t bit7 :1;
    }bit;
}addr_typedef;

/* Exported macro ------------------------------------------------------------*/
/* Exported functions prototypes ---------------------------------------------*/
extern uint8_t rs485_addr ;

uint8_t Rs485_Addr_Scan(void);
/* Private defines -----------------------------------------------------------*/
#ifdef __cplusplus
}
#endif

#endif /* __LL_PASSWORD_KEY_H */

/************************ (C) COPYRIGHT Xinling *****END OF FILE****/
